package cn.arnold.offer.icbc;

/**
 * @author Arnold-Xiang
 * @Info
 */
public class Return {
    public static void main(String[] args) {
        int a = 0;
        System.out.println(f(a));
        User u1 = new User("guanyu");
        User u2 = new User("zf");
        u1.show();
        u2.show();
        C c = new C();
        P p = c;
        System.out.println(c.num+".."+p.num);
    }

    public static int f(int i) {
        try {
            return i++;
        } catch (RuntimeException e) {

        } catch (Exception e) {

        } finally {
            return i++;
        }
    }


}

class User{
    private static String name;
    User(String name){
        this.name = name;
    }
    public void show(){
        System.out.println(name);
    }
}

class P{
    public int num = 0;
}
class C extends P{
    public int num  =1;
}
